﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinTime.Data.Entity;

namespace WinTime.Models;
public class CategoryDto : CategoryModel
{
    public string Icon
    {

        get
        {
            if (IconFile.IndexOf(":") > 0)
            {
                return IconFile;
            }
            else
            {
                if (IconFile == "")
                {
                    IconFile = "Assets\\CategoryIcon\\watermelon.png";
                }
                return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, IconFile);
            }

        }
    }

}
